﻿//-----------------------------------------------------------------------
// <copyright file="Operator.cs" company="SLWY Enterprises">
// * Copyright (C) 2017 四川商旅无忧科技有限公司 版权所有。
// * version : 1.0
// * author  : qinchaoyue
// * FileName: Operator.cs
// * history : created by qinchaoyue 2017-11-06 11:10:30
// </copyright>
//-----------------------------------------------------------------------

namespace Slwy.Context
{
    using System;

    /// <summary>
    /// 当前操作者
    /// </summary>
    public class Operator
    {
        /// <summary>
        /// 用户昵称  数据库中 userdata.userInfo.userName 字段
        /// </summary>
        public string UserName { get; set; } = string.Empty;

        /// <summary>
        /// 用户帐号 对应数据库中 userdata.userInfo.userAccount 字段
        /// </summary>
        public string UserAccount { get; set; } = string.Empty;

        /// <summary>
        /// 其它内容
        /// </summary>
        public string Content { get; set; } = string.Empty;

        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 用户当前所在部门id
        /// </summary>
        public string DepartmentId { get; set; }

        /// <summary>
        /// 用户当前所在公司id
        /// </summary>
        public string CompanyId { get; set; }

        /// <summary>
        /// 用于在上下文键值对中存储本次请求的一些数据
        /// 存进去记得删除
        /// </summary>
        public Guid KeyId { get; set; }
    }
}